home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / zgebal.z / zgebal
Encoding:
Text File  |  2002-10-03  |  5.5 KB  |  199 lines

  1.  
  2.  
  3.  
  4. ZZZZGGGGEEEEBBBBAAAALLLL((((3333SSSS))))                                                          ZZZZGGGGEEEEBBBBAAAALLLL((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ZGEBAL - balance a general complex matrix A
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      SUBROUTINE ZGEBAL( JOB, N, A, LDA, ILO, IHI, SCALE, INFO )
  13.  
  14.          CHARACTER      JOB
  15.  
  16.          INTEGER        IHI, ILO, INFO, LDA, N
  17.  
  18.          DOUBLE         PRECISION SCALE( * )
  19.  
  20.          COMPLEX*16     A( LDA, * )
  21.  
  22. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  23.      These routines are part of the SCSL Scientific Library and can be loaded
  24.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  25.      directs the linker to use the multi-processor version of the library.
  26.  
  27.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  28.      4 bytes (32 bits). Another version of SCSL is available in which integers
  29.      are 8 bytes (64 bits).  This version allows the user access to larger
  30.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  31.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  32.      only one of the two versions; 4-byte integer and 8-byte integer library
  33.      calls cannot be mixed.
  34.  
  35. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  36.      ZGEBAL balances a general complex matrix A. This involves, first,
  37.      permuting A by a similarity transformation to isolate eigenvalues in the
  38.      first 1 to ILO-1 and last IHI+1 to N elements on the diagonal; and
  39.      second, applying a diagonal similarity transformation to rows and columns
  40.      ILO to IHI to make the rows and columns as close in norm as possible.
  41.      Both steps are optional.
  42.  
  43.      Balancing may reduce the 1-norm of the matrix, and improve the accuracy
  44.      of the computed eigenvalues and/or eigenvectors.
  45.  
  46.  
  47. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  48.      JOB     (input) CHARACTER*1
  49.              Specifies the operations to be performed on A:
  50.              = 'N':  none:  simply set ILO = 1, IHI = N, SCALE(I) = 1.0 for i
  51.              = 1,...,N; = 'P':  permute only;
  52.              = 'S':  scale only;
  53.              = 'B':  both permute and scale.
  54.  
  55.      N       (input) INTEGER
  56.              The order of the matrix A.  N >= 0.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ZZZZGGGGEEEEBBBBAAAALLLL((((3333SSSS))))                                                          ZZZZGGGGEEEEBBBBAAAALLLL((((3333SSSS))))
  71.  
  72.  
  73.  
  74.      A       (input/output) COMPLEX*16 array, dimension (LDA,N)
  75.              On entry, the input matrix A.  On exit,  A is overwritten by the
  76.              balanced matrix.  If JOB = 'N', A is not referenced.  See Further
  77.              Details.  LDA     (input) INTEGER The leading dimension of the
  78.              array A.  LDA >= max(1,N).
  79.  
  80.      ILO     (output) INTEGER
  81.              IHI     (output) INTEGER ILO and IHI are set to integers such
  82.              that on exit A(i,j) = 0 if i > j and j = 1,...,ILO-1 or I =
  83.              IHI+1,...,N.  If JOB = 'N' or 'S', ILO = 1 and IHI = N.
  84.  
  85.      SCALE   (output) DOUBLE PRECISION array, dimension (N)
  86.              Details of the permutations and scaling factors applied to A.  If
  87.              P(j) is the index of the row and column interchanged with row and
  88.              column j and D(j) is the scaling factor applied to row and column
  89.              j, then SCALE(j) = P(j)    for j = 1,...,ILO-1 = D(j)    for j =
  90.              ILO,...,IHI = P(j)    for j = IHI+1,...,N.  The order in which
  91.              the interchanges are made is N to IHI+1, then 1 to ILO-1.
  92.  
  93.      INFO    (output) INTEGER
  94.              = 0:  successful exit.
  95.              < 0:  if INFO = -i, the i-th argument had an illegal value.
  96.  
  97. FFFFUUUURRRRTTTTHHHHEEEERRRR DDDDEEEETTTTAAAAIIIILLLLSSSS
  98.      The permutations consist of row and column interchanges which put the
  99.      matrix in the form
  100.  
  101.                 ( T1   X   Y  )
  102.         P A P = (  0   B   Z  )
  103.                 (  0   0   T2 )
  104.  
  105.      where T1 and T2 are upper triangular matrices whose eigenvalues lie along
  106.      the diagonal.  The column indices ILO and IHI mark the starting and
  107.      ending columns of the submatrix B. Balancing consists of applying a
  108.      diagonal similarity transformation inv(D) * B * D to make the 1-norms of
  109.      each row of B and its corresponding column nearly equal.  The output
  110.      matrix is
  111.  
  112.         ( T1     X*D          Y    )
  113.         (  0  inv(D)*B*D  inv(D)*Z ).
  114.         (  0      0           T2   )
  115.  
  116.      Information about the permutations P and the diagonal matrix D is
  117.      returned in the vector SCALE.
  118.  
  119.      This subroutine is based on the EISPACK routine CBAL.
  120.  
  121.      Modified by Tzu-Yi Chen, Computer Science Division, University of
  122.        California at Berkeley, USA
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. ZZZZGGGGEEEEBBBBAAAALLLL((((3333SSSS))))                                                          ZZZZGGGGEEEEBBBBAAAALLLL((((3333SSSS))))
  137.  
  138.  
  139.  
  140. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  141.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  142.  
  143.      This man page is available only online.
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.